<?php
$servername = "localhost";
$username = "root";
$pwd = "root";
$dbname = "sturesult";
$conn = mysqli_connect($servername, $username, $pwd, $dbname);
@mysqli_set_charset($conn, "utf8");

if ($conn->connect_error) {
    die("数据库连接失败" . $conn->connect_error);
} else {
    // echo "连接数据库成功！";
}
